package com.ericsson.rm.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the SKILL_DETAIL database table.
 * 
 */
@Entity
@NamedQueries({
    @NamedQuery(name="SkillDetail.findAll",
                query="SELECT s FROM SkillDetail s"),
    @NamedQuery(name="SkillDetail.findId",
                query="SELECT s.skillId FROM SkillDetail s where s.skillDescription=:skillDesc")         
   
}) 
@Table(name="RP_SKILL_DETAIL")
public class SkillDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="SKILL_ID")
	private String skillId;

	@Column(name="SKILL_DESCRIPTION")
	private String skillDescription;

	@Column(name="SKILL_TYPE")
	private String skillType;

	//bi-directional many-to-one association to ProjectSkillDetail
	@OneToMany(mappedBy="skillDetail")
	private List<ProjectSkillDetail> projectSkillDetails;

	//bi-directional many-to-one association to ResourceSkillDetail
	@OneToMany(mappedBy="skillDetail")
	private List<ResourceSkillDetail> resourceSkillDetails;

	public SkillDetail() {
	}

	public String getSkillId() {
		return this.skillId;
	}

	public void setSkillId(String skillId) {
		this.skillId = skillId;
	}

	public String getSkillDescription() {
		return this.skillDescription;
	}

	public void setSkillDescription(String skillDescription) {
		this.skillDescription = skillDescription;
	}

	public String getSkillType() {
		return this.skillType;
	}

	public void setSkillType(String skillType) {
		this.skillType = skillType;
	}

	public List<ProjectSkillDetail> getProjectSkillDetails() {
		return this.projectSkillDetails;
	}

	public void setProjectSkillDetails(List<ProjectSkillDetail> projectSkillDetails) {
		this.projectSkillDetails = projectSkillDetails;
	}

	public List<ResourceSkillDetail> getResourceSkillDetails() {
		return this.resourceSkillDetails;
	}

	public void setResourceSkillDetails(List<ResourceSkillDetail> resourceSkillDetails) {
		this.resourceSkillDetails = resourceSkillDetails;
	}

}